package com.woniuxy.config;

import com.woniuxy.interceptor.AuthPermIntercepter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author WY
 * @PackageName phase-iv-cyx
 * @Package com.woniuxy.config
 * @Date 2022/12/10 17:25
 * @Version 1.0
 */
@Configuration
public class InterceptorConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AuthPermIntercepter());
    }
}
